package zhupf.test.proxyTest.StaticProxyTest;

import zhupf.test.proxyTest.service.service.UserService;

public class UserProxy implements UserService {

    private UserService userService;

    public UserProxy(UserService userService){
        this.userService = userService;
    }

    @Override
    public void insert(String name, String age) {

        System.out.println("静态代理 前置处理");
        userService.insert(name,age);
        System.out.println("静态代理 后置处理");

    }

    @Override
    public void update(String username) {

    }

    @Override
    public int delete(String name) {
        return 0;
    }
}
